﻿namespace Demos.Hashmap
{
    public abstract class ElementoVisual
    {
        public double X { get; set; }
        public double Y { get; set; }
    }

    public class Caja:ElementoVisual
    {
        public int Altura { get; set; }
        public int Anchura { get; set; }
        public string Contenido { get; set; }

        public Caja(double x, double y, int altura, int anchura, string contenido)
        {
            X = x;
            Y = y;
            Altura = altura;
            Anchura = anchura;
            Contenido = contenido;
        }
    }

    public class Flecha : ElementoVisual
    {
        public double X1 { get; set; }
        public double Y1 { get; set; }
        public double X2 { get; set; }
        public double Y2 { get; set; }

        public Flecha(double x1, double y1, double x2, double y2)
        {
            X1 = x1;
            X2 = x2;
            Y1 = y1;
            Y2 = y2;
            X = 0;
            Y = 0;
        }
    }
}
